package com.kaishun.study.repeatSubmit;

import com.kaishun.study.entity.TbUser;
import com.kaishun.study.utils.ResultVO;
import com.kaishun.study.utils.ResultVOUtil;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Package: com.kaishun.study.repeatSubmit
 * @ClassName: RepeatSubmitController
 * @Author: zhoukaishun
 * @CreateTime: 2022/7/20 15:10
 * @Description:
 */
@RestController
@RequestMapping("repeat")
public class RepeatSubmitController {


    @PostMapping("test")
    @RepeatSubmit(interval = 30000)
    public ResultVO test(@RequestBody TbUser tbUser){
        return ResultVOUtil.success(tbUser);
    }

}
